﻿//
//  Copyright (c) 2011 Extreme: Paweł Huryn (lead), Jakub Domański
//
//

using System;

namespace Extreme.SPFramework.Presentation
{
    /// <summary>
    /// Base class for all presentation models
    /// </summary>
    [Serializable]
    public class PresentationModelBase : IPresentationModel
    {
        /// <summary>
        /// Is read only
        /// </summary>
        public virtual bool IsReadOnly { get { return DisplayMode == DisplayMode.View; } }

        /// <summary>
        /// Display mode
        /// </summary>
        public virtual DisplayMode DisplayMode { get; set; }
    }
}
